let list = document.getElementsByClassName('list')
let listContent = document.getElementsByClassName('list-content')
for(let i = 0;i<list.length;i++){
	//获取每一个list 的内容并将字符串进行转义
	let list_content = JSON.parse(listContent[i].getAttribute('content'));
	for (let  j= 0;  j< list_content.length; j++) {
		listContent[i].innerHTML += `
			<div class="items col-lg-3 ">
				<img src="${list_content[j].imgSrc}" alt="">
				<p class="mt-3">${list_content[j].name}</p>
			</div>
		`
		
	}
	
}